package shuati.shuzimali;

import java.util.Scanner;

/**
 * @author : LdLtd
 * @Date : 2024/4/15
 * @Description:有n个菜，选择多个价格相同但不超过m的，最多可以选几个
 * 如输入
 * 9 6
 * 2 3 3 6 6 6 9 9 23
 * 输出3
 */
public class c2402 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int[] v=new int[101];
        for (int i = 0; i < n; i++) {
            v[sc.nextInt()]++;
        }
        int res=0;
        for (int i = 1; i <=m; i++) {
            res=Math.max(v[i],res);
        }
        System.out.println(res);
    }
}
